{include file=member.header.html}
<div id="page-buyer-order">
	<div class="page-body">
		<form method="POST" id="evaluation">
			<!--{foreach from=$goods_list item=goods name=fe_goods}-->
			<div class="order-goods">
				<div class="list clearfix">
					<div class="pic float-left"><img class="block" src="{$goods.goods_image}" width="50" height="50"  /></div>
					<div class="text float-left"> {if !$group_id}<a href="{url app=goods&id=$goods.goods_id}">
						<h3>
						{else} <a target="_blank" href="{url app=groupbuy&id=$group_id}">
						<h3><strong>[{$lang.groupbuy}] </strong>{/if}{$goods.goods_name|escape}</h3>
						<span>{$goods.specification|escape}</span> </a> </div>
					<div class="pri float-right"> {$goods.price|price} x {$goods.quantity} </div>
				</div>
				<div class="comment-box">
					<h4 class="mt10 fs14">{$lang.total_evaluation}</h4>
					<div class="radio-box pt10 pb10"> <b>
						<label for="g{$goods.rec_id}_op1">
							<input id="g{$goods.rec_id}_op1" type="radio" name="evaluations[{$goods.rec_id}][evaluation]" value="3" checked  />
							<span>{$lang.evaluation_good}</span></label>
						</b> <b>
						<label for="g{$goods.rec_id}_op2">
							<input id="g{$goods.rec_id}_op2" type="radio" name="evaluations[{$goods.rec_id}][evaluation]" value="2" />
							<span>{$lang.evaluation_acceptable}</span></label>
						</b> <b>
						<label for="g{$goods.rec_id}_op3">
							<input id="g{$goods.rec_id}_op3" type="radio" name="evaluations[{$goods.rec_id}][evaluation]" value="1" />
							<span>{$lang.evaluation_bad}</span></label>
						</b> </div>
					<div class="textarea">
						<textarea name="evaluations[{$goods.rec_id}][comment]"></textarea>
					</div>
				</div>
				<div class="fill_in">
					<h4 class="mt10 mb10 fs14">{$lang.store_evaluation}</h4>
					<ul class="raty pb10">
						<script type="text/javascript">
                                     $(function() {
                                          $('#precision-g-{$smarty.foreach.fe_goods.iteration}').raty({
											hints: ['很不满意', '不满意', '一般', '满意', '非常满意'],
                                            target    : '#precision-hint-g-{$smarty.foreach.fe_goods.iteration}',
                                            click: function(score, evt) {
                                              $('#v-g-{$smarty.foreach.fe_goods.iteration}').val(score);
                                            }
											
                                          });
										  $('#precision-sv-{$smarty.foreach.fe_goods.iteration}').raty({
											hints: ['很不满意', '不满意', '一般', '满意', '非常满意'],
                                            target    : '#precision-hint-sv-{$smarty.foreach.fe_goods.iteration}',
                                            click: function(score, evt) {
                                              $('#v-sv-{$smarty.foreach.fe_goods.iteration}').val(score);
                                            }
                                          });
										  $('#precision-sh-{$smarty.foreach.fe_goods.iteration}').raty({
											hints: ['很不满意', '不满意', '一般', '满意', '非常满意'],
                                            target    : '#precision-hint-sh-{$smarty.foreach.fe_goods.iteration}',
                                            click: function(score, evt) {
                                              $('#v-sh-{$smarty.foreach.fe_goods.iteration}').val(score);
                                            }
                                          });
                                     });
                                    </script>
						<li class="mb10 w-full clearfix"> <span  class="float-left mr10 t">{$lang.goods_evaluation}：</span> <span id="precision-g-{$smarty.foreach.fe_goods.iteration}" class="float-left mr10"></span> <span id="precision-hint-g-{$smarty.foreach.fe_goods.iteration}" class="float-left hint"></span>
							<input type="hidden" name="evaluations[{$goods.rec_id}][goods_evaluation]" id="v-g-{$smarty.foreach.fe_goods.iteration}" value="5"/>
						</li>
						<li class="mb10 w-full clearfix"> <span class="float-left mr10 t">{$lang.service_evaluation}：</span> <span id="precision-sv-{$smarty.foreach.fe_goods.iteration}" class="float-left mr10"></span> <span id="precision-hint-sv-{$smarty.foreach.fe_goods.iteration}" class="float-left hint"></span>
							<input type="hidden" name="evaluations[{$goods.rec_id}][service_evaluation]" id="v-sv-{$smarty.foreach.fe_goods.iteration}" value="5"/>
						</li>
						<li class="mb10 w-full clearfix"> <span class="float-left mr10 t">{$lang.shipped_evaluation}：</span> <span id="precision-sh-{$smarty.foreach.fe_goods.iteration}" class="float-left mr10"></span> <span id="precision-hint-sh-{$smarty.foreach.fe_goods.iteration}" class="float-left hint"></span>
							<input type="hidden" name="evaluations[{$goods.rec_id}][shipped_evaluation]" id="v-sh-{$smarty.foreach.fe_goods.iteration}" value="5"/>
						</li>
					</ul>
				</div>
			</div>
			<!--{/foreach}-->
			<div class="padding10 clearfix">
				<div class="float-left" style="width:49%;">
					<input type="submit" class="btn-alipay" value="{$lang.submit}" />
				</div>
				<div class="float-right" style="width:49%;">
					<input type="button" onclick="window.location.href='{url app=buyer_order}'" class="btn-alipay btn-alipay-gray" value="{$lang.evaluate_later}" />
				</div>
			</div>
		</form>
	</div>
</div>
{include file=footer.html} 